package com.piece.core.oauth.properties;

import lombok.Data;
import me.zhyd.oauth.config.AuthConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import java.util.HashMap;
import java.util.Map;

@Data
@RefreshScope
@Configuration
@ConfigurationProperties(prefix = "justauth")
public class JustAuthProperties {

    private boolean enabled;
    private Map<String, AuthConfig> type = new HashMap();
    private CacheProperties cache = new CacheProperties();
}
